<template>
    <div class="demo-radius">
        <div style="text-align: center;margin-bottom: 20px;">找回密码</div>
        <el-form :model="form"   label-width="120px" class="demo-ruleForm">
            <el-form-item label="原因" >
                <el-input v-model="form.reason" />
            </el-form-item>
            <el-form-item label="预留邮箱" prop="email">
                <el-input v-model="form.email" type="email" />
            </el-form-item>

            <el-form-item>
                <el-button type="primary" @click="onSubmit()">发送</el-button>
                <el-button type="primary" @click="resetForm">重置</el-button>
                <el-button type="primary" @click="back()">返回</el-button>

            </el-form-item>
        </el-form>
    </div>
</template>
  
<script  setup>
import {ref} from 'vue';
import { useRouter } from 'vue-router'
const form =ref({})

//组合式api 使用router 使用
const route = useRouter()
const back = () => {
    route.go(-1)
}


</script>
<style scoped>
.el-form-item {
    width: 450px;
}

.demo-radius {
    height: 40px;
    width: 60%;
    border-radius: 0;
    margin-top: 20px;
    margin: 0 auto;
}
</style>

 